home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIUnicharLineInputStream.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  103 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIUnicharLineInputStream.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIUnicharLineInputStream_h__
  6. #define __gen_nsIUnicharLineInputStream_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIUnicharLineInputStream */
  19. #define NS_IUNICHARLINEINPUTSTREAM_IID_STR "67f42475-ba80-40f8-ac0b-649c89230184"
  20.  
  21. #define NS_IUNICHARLINEINPUTSTREAM_IID \
  22.   {0x67f42475, 0xba80, 0x40f8, \
  23.     { 0xac, 0x0b, 0x64, 0x9c, 0x89, 0x23, 0x01, 0x84 }}
  24.  
  25. class NS_NO_VTABLE nsIUnicharLineInputStream : public nsISupports {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IUNICHARLINEINPUTSTREAM_IID)
  29.  
  30.   /**
  31.    * Read a single line from the stream, where a line is a 
  32.    * possibly zero length sequence of characters terminated by a
  33.    * CR, LF, CRLF, LFCR, or eof.
  34.    * The line terminator is not returned.
  35.    * @retval false
  36.    *         End of file. This line is the last line of the file
  37.    *         (aLine is valid).
  38.    * @retval true
  39.    *         The file contains further lines.
  40.    * @note Do not mix readLine with other read functions.
  41.    *       Doing so can cause various problems and is not supported.
  42.    */
  43.   /* boolean readLine (out AString aLine); */
  44.   NS_IMETHOD ReadLine(nsAString & aLine, PRBool *_retval) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSIUNICHARLINEINPUTSTREAM \
  50.   NS_IMETHOD ReadLine(nsAString & aLine, PRBool *_retval); 
  51.  
  52. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  53. #define NS_FORWARD_NSIUNICHARLINEINPUTSTREAM(_to) \
  54.   NS_IMETHOD ReadLine(nsAString & aLine, PRBool *_retval) { return _to ReadLine(aLine, _retval); } 
  55.  
  56. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  57. #define NS_FORWARD_SAFE_NSIUNICHARLINEINPUTSTREAM(_to) \
  58.   NS_IMETHOD ReadLine(nsAString & aLine, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReadLine(aLine, _retval); } 
  59.  
  60. #if 0
  61. /* Use the code below as a template for the implementation class for this interface. */
  62.  
  63. /* Header file */
  64. class nsUnicharLineInputStream : public nsIUnicharLineInputStream
  65. {
  66. public:
  67.   NS_DECL_ISUPPORTS
  68.   NS_DECL_NSIUNICHARLINEINPUTSTREAM
  69.  
  70.   nsUnicharLineInputStream();
  71.  
  72. private:
  73.   ~nsUnicharLineInputStream();
  74.  
  75. protected:
  76.   /* additional members */
  77. };
  78.  
  79. /* Implementation file */
  80. NS_IMPL_ISUPPORTS1(nsUnicharLineInputStream, nsIUnicharLineInputStream)
  81.  
  82. nsUnicharLineInputStream::nsUnicharLineInputStream()
  83. {
  84.   /* member initializers and constructor code */
  85. }
  86.  
  87. nsUnicharLineInputStream::~nsUnicharLineInputStream()
  88. {
  89.   /* destructor code */
  90. }
  91.  
  92. /* boolean readLine (out AString aLine); */
  93. NS_IMETHODIMP nsUnicharLineInputStream::ReadLine(nsAString & aLine, PRBool *_retval)
  94. {
  95.     return NS_ERROR_NOT_IMPLEMENTED;
  96. }
  97.  
  98. /* End of implementation class template. */
  99. #endif
  100.  
  101.  
  102. #endif /* __gen_nsIUnicharLineInputStream_h__ */
  103.